Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make air staging detach units when killed #6665

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from

Conversation

lL1l1
Copy link
Contributor

@lL1l1 lL1l1 commented Feb 18, 2025

Issue

Workaround for a bug posted on discord: https://discord.com/channels/197033481883222026/1322240211429883935
Units can get stuck inside air staging late game when there are many units.

Description of the proposed changes

Detach units from the air staging when it is killed.
Kill is hooked because the C function Kill kills all attached units, so we cannot detach them in OnKilled.

Testing done on the proposed changes

Spawn an air staging and get some aircraft to low fuel with wld_runwiththewind. Dock the aircraft and kill the air staging with ctrl k or a unit. The aircraft should detach when it dies.

Checklist

  • Changes are annotated, including comments where useful
  • Changes are documented in the changelog for the next game version

@lL1l1 lL1l1 added type: bug area: engine related to engine bugs/limitations type: enhancement area: balance related to units balance, but not as a suggestion labels Feb 18, 2025
@lL1l1 lL1l1 marked this pull request as ready for review February 18, 2025 08:17
@lL1l1 lL1l1 changed the title Air staging detaches units when killed Make air staging detach units when killed Feb 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: balance related to units balance, but not as a suggestion area: engine related to engine bugs/limitations type: bug type: enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant